<!DOCTYPE html>
<!-- saved from url=(0068)https://m.zuche.com/html5/newversion/member/contact.html?storeflag=1 -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

 <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta content="telephone=no,email=no" name="format-detection">
    <meta content="fullscreen=yes,preventMove=no" name="ML-Config">
    <title>神州租车—中国租车领导者!天天超低价!!!</title>
    <meta name="description" content="神州租车-全国70大城市,90大机场高铁,万辆新车,不限里程,价格超低,手续便捷,服务尽心,24小时服务,携手贝克汉姆共启云战略.Tel:400-616-6666">
    <meta name="keywords" content="租车，租车网，租车公司，汽车租赁，H_lYMbU-rQ0RUInbjlkbxqyQBhQ">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,minimal-ui">
    <meta name="apple-mobile-web-app-title" content="神州租车">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta content="telephone=no" name="format-detection">
    <meta name="baidu-tc-cerfication" content="55c603db1cd78c7f7ab7686162824f23">
    <link rel="stylesheet" type="text/css" href="/css/H5phone/index_files/zcbase@0ec0b016a8.css">
    <link rel="stylesheet" type="text/css" href="/css/H5phone/index_files/personalCenter@2aa330b0bd.css">
</head>
<body rlt="1" style="">
<header class="zc_header_bd">
    <div class="getback" style="white-space:normal" data-url="/users/contacts">
        <span class="getbackimg">&nbsp;</span>
    </div>
    <h1 class="header_title" id="page_title">联系方式</h1>
    <span id="save" class="ct-save yel">保存</span>
</header>
<div class="hotel-page-pt50 perContact">
	<div class="personInfoDiv pt10" id="contactBox">
	<ul>
	
	<#if userEmail.email??>
		
		<li class="eml emailli">
			<i class="yx-i pf-i"></i>
			<span>常用邮箱</span>
			<input type="text" id="email" class="rinfo noarrow email" placeholder="输入邮箱" value="${userEmail.email}" maxlength="18">
		</li>
		
	<#else>
	<li class="eml emailli">
			<i class="yx-i pf-i"></i>
			<span>常用邮箱</span>
			<input type="text" id="email" class="rinfo noarrow email" placeholder="输入邮箱" value="" maxlength="18">
		</li>
	</#if>
	
	

		
	</ul>
	
</div>
<div class="dialogSuccess" style="display: none">
				<div class="dialog-closeSuccess" onclick="closeM()"></div>
				<div id="message" class="dialog-contentSuccess"></div>
			</div>
</div>


<div id="loading-mask" class="mask" style="display: none;"><div class="loading-new"><span class="l-logo"></span><span class="l-film animate-loading"></span></div></div>
<script type="text/javascript" src="/js/jquery-3.2.1.js"></script>

<script>


$("#save").click(function(){
	var email =$("#email").val();
	var reg =/^([0-9A-Za-z\-_\.]+)@([0-9a-z]+\.[a-z]{2,3}(\.[a-z]{2})?)$/g;
	if(!reg.test(email)){
		$(".dialogSuccess").css("display","block")
		$("#message").text("输入邮箱格式不正确，请重新输入!")
		return false;
	}
	
	$.ajax({
		type : "post",//请求类型
		url : "/users/emailSave",
		data : {
			"email" : email
		},//请求参数   
		dataType : "json",//ajax接口（请求url）返回的数据类型
		success : function(data) {//data：返回数据（json对象）
			if(data.msg){
				$("#loading-mask").show();
				setTimeout(function(){
					$(".dialogSuccess").css("display","block")
					$("#message").text("保存成功！")
								},1500)
				setTimeout(function(){
								
									location.href="/personInfos";
								},3000)
			}

		},
		error : function(data) {//当访问时候，404，500 等非200的错误状态码
		}

	});
})

$(".getback").click(function(){
	window.location.href=$(".getback").data("url");
})
</script>

</body></html>